/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of SimpleEL.
 * 
 * SimpleEL is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * SimpleEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with SimpleEL. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.msoftch.internal;

/**
 * Factory to create {@link ICache}s.
 * 
 * @author M. Hautle
 */
public class CacheFactory {
    /**
     * Creates a cache for the given key value combination.
     * 
     * @param <K> The key type
     * @param <V> The value type
     * @param keyType The key type
     * @param valueType The value type
     * @return A newly created cache
     */
    public static <K, V> ICache<K, V> createCache(Class<K> keyType, Class<V> valueType) {
        return new LockedCache<K, V>();
    }
}
